---
title: "SpaceFieldSet"
description: "Class representing a set of fields in a space with validation and type management"
---

A class representing a set of fields in a space.

## Constructor

```python
SpaceFieldSet(space, fields, allowed_param_types=None)
```

### Parameters

<ParamField path="space" type="Space" required>
The space instance this field set belongs to.
</ParamField>

<ParamField path="fields" type="set[SchemaField]" required>
The set of schema fields for this field set.
</ParamField>

<ParamField path="allowed_param_types" type="Sequence[type] | None" default="None">
Optional sequence of allowed parameter types for validation.
</ParamField>

## Inheritance

**Inheritance Chain**: 
- `SpaceFieldSet` 
- → `Generic`

### Descendants

- [**ImageDescriptionSpaceFieldSet**](/reference/dsl/space/image_space_field_set) - Specialized for image spaces with descriptions
- [**ImageSpaceFieldSet**](/reference/dsl/space/image_space_field_set) - Standard image space field set

## Properties

<ParamField path="allowed_param_types" type="Sequence[type] | None">
The allowed parameter types for this field set.
</ParamField>

<ParamField path="field_names_text" type="Sequence[str]">
Text representation of field names in this set.
</ParamField>

<ParamField path="fields" type="set[SchemaField]">
The set of schema fields contained in this field set.
</ParamField>

<ParamField path="fields_id" type="str">
Unique identifier for this field set.
</ParamField>

<ParamField path="input_type" type="type[SIT]">
The input type for this field set.
</ParamField>

<ParamField path="space" type="Space">
The space instance this field set belongs to.
</ParamField>

<ParamField path="validated_allowed_param_types" type="Sequence[type]">
The validated sequence of allowed parameter types.
</ParamField>

## Methods

### get_field_for_schema()

```python
get_field_for_schema(schema_) -> SchemaField | None
```

Retrieve the field associated with a specific schema instance.

<ParamField path="schema_" type="Any" required>
The schema instance to find the field for.
</ParamField>

**Returns**: The schema field if found, None otherwise.